package com.zhiyinlou.apps.utils.sql.tresult;

import java.sql.Connection;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.zhiyinlou.apps.utils.db.DBUtils;



public class RequestStatusDbTest {

	
	public static Logger logger = LogManager.getLogger(RequestStatusDbTest.class);
	
	
	public static void insert_result(
			String url,String code,
			String message,String cost){
		Connection con = DBUtils.getConnection("tresult", "tresult");
		String sql = "insert into request_status(url,code,message,cost,createDate) values('"+url+"','"+code+"','"+message+"','"+cost+"',now())";
		DBUtils.insertOneObject(con, sql);
		DBUtils.closeConnection("tresult");
	}
}
